package edu.neusoft.yiqibike.common.entity.convert;

import edu.neusoft.yiqibike.common.entity.mysql.Role;
import edu.neusoft.yiqibike.common.entity.vo.TreeVo;


/**
 * User：lyc
 * Date：2017-12-29
 * Time：21:22
 * Description：
 */
public class RoleConverter extends Converter<TreeVo, Role> {
    public RoleConverter() {
        super(role -> new TreeVo(role.getId(), role.getCode(), "role"),
                vo -> new Role(vo.getId(), vo.getLabel()));
    }
}
